home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / General Mu229157162001.psc / Keyboard / Form2.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2001-08-30  |  24.1 KB  |  753 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  3. Begin VB.Form Form2 
  4.    BorderStyle     =   5  'Sizable ToolWindow
  5.    ClientHeight    =   6630
  6.    ClientLeft      =   60
  7.    ClientTop       =   60
  8.    ClientWidth     =   4500
  9.    ControlBox      =   0   'False
  10.    BeginProperty Font 
  11.       Name            =   "MS Sans Serif"
  12.       Size            =   8.25
  13.       Charset         =   0
  14.       Weight          =   700
  15.       Underline       =   0   'False
  16.       Italic          =   0   'False
  17.       Strikethrough   =   0   'False
  18.    EndProperty
  19.    Icon            =   "Form2.frx":0000
  20.    LinkTopic       =   "Form2"
  21.    MaxButton       =   0   'False
  22.    MinButton       =   0   'False
  23.    ScaleHeight     =   6630
  24.    ScaleWidth      =   4500
  25.    ShowInTaskbar   =   0   'False
  26.    StartUpPosition =   2  'CenterScreen
  27.    Begin VB.Frame Frame1 
  28.       BeginProperty Font 
  29.          Name            =   "MS Sans Serif"
  30.          Size            =   8.25
  31.          Charset         =   0
  32.          Weight          =   400
  33.          Underline       =   0   'False
  34.          Italic          =   0   'False
  35.          Strikethrough   =   0   'False
  36.       EndProperty
  37.       Height          =   6375
  38.       Left            =   120
  39.       TabIndex        =   10
  40.       Top             =   120
  41.       Width           =   4215
  42.       Begin VB.TextBox Text10 
  43.          Height          =   375
  44.          Left            =   480
  45.          TabIndex        =   31
  46.          Text            =   "0"
  47.          Top             =   480
  48.          Visible         =   0   'False
  49.          Width           =   1095
  50.       End
  51.       Begin VB.PictureBox Picture1 
  52.          Height          =   5655
  53.          Left            =   -120
  54.          Picture         =   "Form2.frx":0ECA
  55.          ScaleHeight     =   5595
  56.          ScaleWidth      =   4755
  57.          TabIndex        =   26
  58.          Top             =   960
  59.          Visible         =   0   'False
  60.          Width           =   4815
  61.          Begin VB.Label Label3 
  62.             BackStyle       =   0  'Transparent
  63.             Height          =   2895
  64.             Left            =   0
  65.             TabIndex        =   27
  66.             Top             =   120
  67.             Width           =   4335
  68.          End
  69.       End
  70.       Begin VB.CommandButton Command12 
  71.          Caption         =   "Back"
  72.          Height          =   255
  73.          Left            =   480
  74.          TabIndex        =   29
  75.          ToolTipText     =   "Back To Previous Window"
  76.          Top             =   6000
  77.          Width           =   615
  78.       End
  79.       Begin VB.CommandButton Command11 
  80.          Caption         =   "Clean"
  81.          Height          =   255
  82.          Left            =   1200
  83.          TabIndex        =   28
  84.          ToolTipText     =   "To Clean The Program From Selected Keypad Number"
  85.          Top             =   6000
  86.          Width           =   735
  87.       End
  88.       Begin VB.CommandButton Command200 
  89.          Caption         =   "Hide"
  90.          Default         =   -1  'True
  91.          Height          =   255
  92.          Left            =   2040
  93.          TabIndex        =   0
  94.          ToolTipText     =   "Load The Program And Hide"
  95.          Top             =   6000
  96.          Width           =   735
  97.       End
  98.       Begin VB.CommandButton Command204 
  99.          Caption         =   "Disable Always Run"
  100.          BeginProperty Font 
  101.             Name            =   "MS Sans Serif"
  102.             Size            =   8.25
  103.             Charset         =   0
  104.             Weight          =   400
  105.             Underline       =   0   'False
  106.             Italic          =   0   'False
  107.             Strikethrough   =   0   'False
  108.          EndProperty
  109.          Height          =   255
  110.          Left            =   1920
  111.          TabIndex        =   24
  112.          ToolTipText     =   "To Disable Run Automatically"
  113.          Top             =   5640
  114.          Width           =   1695
  115.       End
  116.       Begin VB.CommandButton Command203 
  117.          Caption         =   "Always Run"
  118.          BeginProperty Font 
  119.             Name            =   "MS Sans Serif"
  120.             Size            =   8.25
  121.             Charset         =   0
  122.             Weight          =   400
  123.             Underline       =   0   'False
  124.             Italic          =   0   'False
  125.             Strikethrough   =   0   'False
  126.          EndProperty
  127.          Height          =   255
  128.          Left            =   480
  129.          TabIndex        =   23
  130.          ToolTipText     =   "To Start Automatically While Windows Start"
  131.          Top             =   5640
  132.          Width           =   1335
  133.       End
  134.       Begin VB.CommandButton Command10 
  135.          Caption         =   "Exit"
  136.          Height          =   255
  137.          Left            =   2880
  138.          TabIndex        =   20
  139.          ToolTipText     =   "Exit To Windows System"
  140.          Top             =   6000
  141.          Width           =   735
  142.       End
  143.       Begin VB.CommandButton Command1 
  144.          Caption         =   "1"
  145.          Height          =   375
  146.          Left            =   3240
  147.          TabIndex        =   1
  148.          Top             =   1080
  149.          Width           =   375
  150.       End
  151.       Begin VB.TextBox Text1 
  152.          BeginProperty Font 
  153.             Name            =   "MS Sans Serif"
  154.             Size            =   8.25
  155.             Charset         =   0
  156.             Weight          =   400
  157.             Underline       =   0   'False
  158.             Italic          =   0   'False
  159.             Strikethrough   =   0   'False
  160.          EndProperty
  161.          Height          =   375
  162.          Left            =   480
  163.          TabIndex        =   19
  164.          Text            =   "0"
  165.          Top             =   1080
  166.          Width           =   2655
  167.       End
  168.       Begin VB.TextBox Text2 
  169.          BeginProperty Font 
  170.             Name            =   "MS Sans Serif"
  171.             Size            =   8.25
  172.             Charset         =   0
  173.             Weight          =   400
  174.             Underline       =   0   'False
  175.             Italic          =   0   'False
  176.             Strikethrough   =   0   'False
  177.          EndProperty
  178.          Height          =   375
  179.          Left            =   480
  180.          TabIndex        =   18
  181.          Text            =   "0"
  182.          Top             =   1560
  183.          Width           =   2655
  184.       End
  185.       Begin VB.CommandButton Command2 
  186.          Caption         =   "2"
  187.          Height          =   375
  188.          Left            =   3240
  189.          TabIndex        =   2
  190.          Top             =   1560
  191.          Width           =   375
  192.       End
  193.       Begin VB.TextBox Text3 
  194.          BeginProperty Font 
  195.             Name            =   "MS Sans Serif"
  196.             Size            =   8.25
  197.             Charset         =   0
  198.             Weight          =   400
  199.             Underline       =   0   'False
  200.             Italic          =   0   'False
  201.             Strikethrough   =   0   'False
  202.          EndProperty
  203.          Height          =   375
  204.          Left            =   480
  205.          TabIndex        =   17
  206.          Text            =   "0"
  207.          Top             =   2040
  208.          Width           =   2655
  209.       End
  210.       Begin VB.CommandButton Command3 
  211.          Caption         =   "3"
  212.          Height          =   375
  213.          Left            =   3240
  214.          TabIndex        =   3
  215.          Top             =   2040
  216.          Width           =   375
  217.       End
  218.       Begin VB.TextBox Text4 
  219.          BeginProperty Font 
  220.             Name            =   "MS Sans Serif"
  221.             Size            =   8.25
  222.             Charset         =   0
  223.             Weight          =   400
  224.             Underline       =   0   'False
  225.             Italic          =   0   'False
  226.             Strikethrough   =   0   'False
  227.          EndProperty
  228.          Height          =   375
  229.          Left            =   480
  230.          TabIndex        =   16
  231.          Text            =   "0"
  232.          Top             =   2520
  233.          Width           =   2655
  234.       End
  235.       Begin VB.CommandButton Command4 
  236.          Caption         =   "4"
  237.          Height          =   375
  238.          Left            =   3240
  239.          TabIndex        =   4
  240.          Top             =   2520
  241.          Width           =   375
  242.       End
  243.       Begin VB.TextBox Text5 
  244.          BeginProperty Font 
  245.             Name            =   "MS Sans Serif"
  246.             Size            =   8.25
  247.             Charset         =   0
  248.             Weight          =   400
  249.             Underline       =   0   'False
  250.             Italic          =   0   'False
  251.             Strikethrough   =   0   'False
  252.          EndProperty
  253.          Height          =   375
  254.          Left            =   480
  255.          TabIndex        =   15
  256.          Text            =   "0"
  257.          Top             =   3000
  258.          Width           =   2655
  259.       End
  260.       Begin VB.CommandButton Command5 
  261.          Caption         =   "5"
  262.          Height          =   375
  263.          Left            =   3240
  264.          TabIndex        =   5
  265.          Top             =   3000
  266.          Width           =   375
  267.       End
  268.       Begin VB.TextBox Text6 
  269.          BeginProperty Font 
  270.             Name            =   "MS Sans Serif"
  271.             Size            =   8.25
  272.             Charset         =   0
  273.             Weight          =   400
  274.             Underline       =   0   'False
  275.             Italic          =   0   'False
  276.             Strikethrough   =   0   'False
  277.          EndProperty
  278.          Height          =   375
  279.          Left            =   480
  280.          TabIndex        =   14
  281.          Text            =   "0"
  282.          Top             =   3480
  283.          Width           =   2655
  284.       End
  285.       Begin VB.CommandButton Command6 
  286.          Caption         =   "6"
  287.          Height          =   375
  288.          Left            =   3240
  289.          TabIndex        =   6
  290.          Top             =   3480
  291.          Width           =   375
  292.       End
  293.       Begin VB.CommandButton Command7 
  294.          Caption         =   "7"
  295.          Height          =   375
  296.          Left            =   3240
  297.          TabIndex        =   7
  298.          Top             =   3960
  299.          Width           =   375
  300.       End
  301.       Begin VB.TextBox Text7 
  302.          BeginProperty Font 
  303.             Name            =   "MS Sans Serif"
  304.             Size            =   8.25
  305.             Charset         =   0
  306.             Weight          =   400
  307.             Underline       =   0   'False
  308.             Italic          =   0   'False
  309.             Strikethrough   =   0   'False
  310.          EndProperty
  311.          Height          =   375
  312.          Left            =   480
  313.          TabIndex        =   13
  314.          Text            =   "0"
  315.          Top             =   3960
  316.          Width           =   2655
  317.       End
  318.       Begin VB.TextBox Text8 
  319.          BeginProperty Font 
  320.             Name            =   "MS Sans Serif"
  321.             Size            =   8.25
  322.             Charset         =   0
  323.             Weight          =   400
  324.             Underline       =   0   'False
  325.             Italic          =   0   'False
  326.             Strikethrough   =   0   'False
  327.          EndProperty
  328.          Height          =   375
  329.          Left            =   480
  330.          TabIndex        =   12
  331.          Text            =   "0"
  332.          Top             =   4440
  333.          Width           =   2655
  334.       End
  335.       Begin VB.CommandButton Command8 
  336.          Caption         =   "8"
  337.          Height          =   375
  338.          Left            =   3240
  339.          TabIndex        =   8
  340.          Top             =   4440
  341.          Width           =   375
  342.       End
  343.       Begin VB.TextBox Text9 
  344.          BeginProperty Font 
  345.             Name            =   "MS Sans Serif"
  346.             Size            =   8.25
  347.             Charset         =   0
  348.             Weight          =   400
  349.             Underline       =   0   'False
  350.             Italic          =   0   'False
  351.             Strikethrough   =   0   'False
  352.          EndProperty
  353.          Height          =   375
  354.          Left            =   480
  355.          TabIndex        =   11
  356.          Text            =   "0"
  357.          Top             =   4920
  358.          Width           =   2655
  359.       End
  360.       Begin VB.CommandButton Command9 
  361.          Caption         =   "9"
  362.          Height          =   375
  363.          Left            =   3240
  364.          TabIndex        =   9
  365.          Top             =   4920
  366.          Width           =   375
  367.       End
  368.       Begin VB.CheckBox Check1 
  369.          Caption         =   "Enable Close Application"
  370.          Height          =   195
  371.          Left            =   720
  372.          TabIndex        =   30
  373.          ToolTipText     =   "To Enable/Disable Close Application."
  374.          Top             =   5400
  375.          Width           =   2655
  376.       End
  377.       Begin VB.Shape Shape1 
  378.          Height          =   255
  379.          Left            =   3240
  380.          Top             =   480
  381.          Width           =   855
  382.       End
  383.       Begin VB.Label Label2 
  384.          AutoSize        =   -1  'True
  385.          BackStyle       =   0  'Transparent
  386.          Caption         =   "LayOut"
  387.          Height          =   195
  388.          Left            =   3360
  389.          TabIndex        =   25
  390.          Top             =   480
  391.          Width           =   615
  392.       End
  393.       Begin VB.Label Label1 
  394.          AutoSize        =   -1  'True
  395.          BackStyle       =   0  'Transparent
  396.          Caption         =   "General Multimedia KeyBoard"
  397.          Height          =   195
  398.          Left            =   720
  399.          TabIndex        =   22
  400.          Top             =   240
  401.          Width           =   2505
  402.       End
  403.       Begin VB.Label Label100 
  404.          AutoSize        =   -1  'True
  405.          BackStyle       =   0  'Transparent
  406.          Caption         =   "Set Program"
  407.          BeginProperty Font 
  408.             Name            =   "MS Sans Serif"
  409.             Size            =   9.75
  410.             Charset         =   0
  411.             Weight          =   700
  412.             Underline       =   0   'False
  413.             Italic          =   0   'False
  414.             Strikethrough   =   0   'False
  415.          EndProperty
  416.          Height          =   240
  417.          Left            =   1320
  418.          TabIndex        =   21
  419.          Top             =   720
  420.          Width           =   1305
  421.       End
  422.    End
  423.    Begin MSComDlg.CommonDialog cmdlg 
  424.       Left            =   120
  425.       Top             =   7440
  426.       _ExtentX        =   847
  427.       _ExtentY        =   847
  428.       _Version        =   393216
  429.       DefaultExt      =   "*.exe"
  430.       DialogTitle     =   "General File System"
  431.       Filter          =   "*.exe"
  432.    End
  433. Attribute VB_Name = "Form2"
  434. Attribute VB_GlobalNameSpace = False
  435. Attribute VB_Creatable = False
  436. Attribute VB_PredeclaredId = True
  437. Attribute VB_Exposed = False
  438. Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As String, ByVal fuWinIni As Long) As Long
  439. Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long         ' Note that if you declare the lpData parameter as String, you must pass it By Value.
  440. Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
  441. Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
  442.  Const HKEY_LOCAL_MACHINE = &H80000002
  443.  Const SPIF_UPDATEINIFILE = &H1
  444. Const SPI_SETDESKWALLPAPER = 20
  445. Const SPIF_SENDWININICHANGE = &H2
  446. Public Sub SaveString(hKey As Long, StrPath As String, StrValue As String, StrData As String)
  447.    Dim KeyH&
  448.     r = RegCreateKey(hKey, StrPath, KeyH&)
  449.     r = RegSetValueEx(KeyH&, StrValue, 0, 1, ByVal StrData, Len(StrData))
  450.     r = RegCloseKey(KeyH&)
  451. End Sub
  452. Private Sub Check1_Click()
  453. On Error GoTo err
  454. tahmina:
  455. If Check1.Value = 1 Then
  456. Kill ("c:\windows\10.txt")
  457. FileNumber = FreeFile
  458. filename = "c:\windows\10.txt"
  459. Open filename For Append As #FileNumber
  460. Print #FileNumber, "1"
  461. Close #FileNumber
  462. Kill ("c:\windows\10.txt")
  463. FileNumber = FreeFile
  464. filename = "c:\windows\10.txt"
  465. Open filename For Append As #FileNumber
  466. Print #FileNumber, "0"
  467. Close #FileNumber
  468. End If
  469. Exit Sub
  470. FileNumber = FreeFile
  471. filename = "c:\windows\10.txt"
  472. Open filename For Append As #FileNumber
  473. Close #FileNumber
  474. GoTo tahmina
  475. End Sub
  476. Private Sub Command1_Click()
  477. Dim count As Variant
  478. On Error Resume Next
  479. cmdlg.ShowOpen
  480. If cmdlg.filename = "" Then
  481. MsgBox "No File Selected.", 16, "Error"
  482. Text1.Text = cmdlg.filename
  483. Kill ("c:\windows\1.txt")
  484. FileNumber = FreeFile
  485. filename = "c:\windows\1.txt"
  486. Open filename For Append As #FileNumber
  487. Print #FileNumber, Text1.Text
  488. Close #FileNumber
  489. cmdlg.filename = ""
  490. End If
  491. End Sub
  492. Private Sub Command10_Click()
  493. Dim ans As Variant
  494. ans = MsgBox("Do You Really Want To Quit?..", vbYesNo, "Quit")
  495. If ans = vbNo Then
  496. Load Me
  497. End If
  498. End Sub
  499. Private Sub Command11_Click()
  500. Dim filename As String
  501. On Error Resume Next
  502. filename = "c:\windows\"
  503. x = InputBox("Enter Which Keypad Setting Program You Want To Delete..", "Delete Program")
  504. Kill (filename & x & ".txt")
  505. FileNumber = FreeFile
  506. filename = "c:\windows\x.txt"
  507. Open filename For Append As #FileNumber
  508. Print #FileNumber, ""
  509. Close #FileNumber
  510. End Sub
  511. Private Sub Command12_Click()
  512. On Error Resume Next
  513. Me.Hide
  514. Form1.Timer1.Enabled = False
  515. Form1.Frame1.Height = 6095
  516. Form1.Height = 6320
  517. Form1.Show
  518. End Sub
  519. Private Sub Command2_Click()
  520. Dim count As Variant
  521. On Error Resume Next
  522. cmdlg.ShowOpen
  523. If cmdlg.filename = "" Then
  524. MsgBox "No File Selected.", 16, "Error"
  525. Text2.Text = cmdlg.filename
  526. Kill ("c:\windows\2.txt")
  527. FileNumber = FreeFile
  528. filename = "c:\windows\2.txt"
  529. Open filename For Append As #FileNumber
  530. Print #FileNumber, Text2.Text
  531. Close #FileNumber
  532. cmdlg.filename = ""
  533. End If
  534. End Sub
  535. Private Sub Command200_Click()
  536. Load Form1
  537. Unload Me
  538. End Sub
  539. Private Sub Command203_Click()
  540. On Error Resume Next
  541. If Command203.Value = 1 Then
  542. SaveSetting App.Title, App.Title, "RunWithSystem", 1
  543. SaveString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "TaskBarCont", "TaskBarCont"
  544. SaveSetting App.Title, App.Title, "RunWithSystem", 0
  545. SaveString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "TaskBarCont", "C:\Windows\TaskShot.exe"
  546. End If
  547. End Sub
  548. Private Sub Command204_Click()
  549. On Error Resume Next
  550. If Command204.Value = 1 Then
  551. SaveSetting App.Title, App.Title, "RunWithSystem", 1
  552. SaveString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "TaskBarCont", "TaskBarCont"
  553. SaveSetting App.Title, App.Title, "RunWithSystem", 0
  554. SaveString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "TaskBarCont", "0"
  555. End If
  556. End Sub
  557. Private Sub Command3_Click()
  558. Dim count As Variant
  559. On Error Resume Next
  560. cmdlg.ShowOpen
  561. If cmdlg.filename = "" Then
  562. MsgBox "No File Selected.", 16, "Error"
  563. Text3.Text = cmdlg.filename
  564. Kill ("c:\windows\3.txt")
  565. FileNumber = FreeFile
  566. filename = "c:\windows\3.txt"
  567. Open filename For Append As #FileNumber
  568. Print #FileNumber, Text3.Text
  569. Close #FileNumber
  570. cmdlg.filename = ""
  571. End If
  572. End Sub
  573. Private Sub Command4_Click()
  574. Dim count As Variant
  575. On Error Resume Next
  576. cmdlg.ShowOpen
  577. If cmdlg.filename = "" Then
  578. MsgBox "No File Selected.", 16, "Error"
  579. Text4.Text = cmdlg.filename
  580. Kill ("c:\windows\4.txt")
  581. FileNumber = FreeFile
  582. filename = "c:\windows\4.txt"
  583. Open filename For Append As #FileNumber
  584. Print #FileNumber, Text4.Text
  585. Close #FileNumber
  586. cmdlg.filename = ""
  587. End If
  588. End Sub
  589. Private Sub Command5_Click()
  590. Dim count As Variant
  591. On Error Resume Next
  592. cmdlg.ShowOpen
  593. If cmdlg.filename = "" Then
  594. MsgBox "No File Selected.", 16, "Error"
  595. Text5.Text = cmdlg.filename
  596. Kill ("c:\windows\5.txt")
  597. FileNumber = FreeFile
  598. filename = "c:\windows\5.txt"
  599. Open filename For Append As #FileNumber
  600. Print #FileNumber, Text5.Text
  601. Close #FileNumber
  602. cmdlg.filename = ""
  603. End If
  604. End Sub
  605. Private Sub Command6_Click()
  606. Dim count As Variant
  607. On Error Resume Next
  608. cmdlg.ShowOpen
  609. If cmdlg.filename = "" Then
  610. MsgBox "No File Selected.", 16, "Error"
  611. Text6.Text = cmdlg.filename
  612. Kill ("c:\windows\6.txt")
  613. FileNumber = FreeFile
  614. filename = "c:\windows\6.txt"
  615. Open filename For Append As #FileNumber
  616. Print #FileNumber, Text6.Text
  617. Close #FileNumber
  618. cmdlg.filename = ""
  619. End If
  620. End Sub
  621. Private Sub Command7_Click()
  622. Dim count As Variant
  623. On Error Resume Next
  624. cmdlg.ShowOpen
  625. If cmdlg.filename = "" Then
  626. MsgBox "No File Selected.", 16, "Error"
  627. Text7.Text = cmdlg.filename
  628. Kill ("c:\windows\7.txt")
  629. FileNumber = FreeFile
  630. filename = "c:\windows\7.txt"
  631. Open filename For Append As #FileNumber
  632. Print #FileNumber, Text7.Text
  633. Close #FileNumber
  634. cmdlg.filename = ""
  635. End If
  636. End Sub
  637. Private Sub Command8_Click()
  638. Dim count As Variant
  639. On Error Resume Next
  640. cmdlg.ShowOpen
  641. If cmdlg.filename = "" Then
  642. MsgBox "No File Selected.", 16, "Error"
  643. Text8.Text = cmdlg.filename
  644. Kill ("c:\windows\8.txt")
  645. FileNumber = FreeFile
  646. filename = "c:\windows\8.txt"
  647. Open filename For Append As #FileNumber
  648. Print #FileNumber, Text8.Text
  649. Close #FileNumber
  650. cmdlg.filename = ""
  651. End If
  652. End Sub
  653. Private Sub Command9_Click()
  654. Dim count As Variant
  655. On Error Resume Next
  656. cmdlg.ShowOpen
  657. If cmdlg.filename = "" Then
  658. MsgBox "No File Selected.", 16, "Error"
  659. Text9.Text = cmdlg.filename
  660. Kill ("c:\windows\9.txt")
  661. FileNumber = FreeFile
  662. filename = "c:\windows\9.txt"
  663. Open filename For Append As #FileNumber
  664. Print #FileNumber, Text9.Text
  665. Close #FileNumber
  666. End If
  667. End Sub
  668. Private Sub Form_Load()
  669. Dim count As Variant
  670. On Error Resume Next
  671. Unload Form1
  672.  FileNumber = FreeFile
  673. filename = "c:\windows\10.txt"
  674. Open "c:\windows\10.txt" For Input As #FileNumber
  675. Text10.Text = Input(LOF(1), 1)
  676. Close #1
  677. count = (Len(Text10.Text) - 2)
  678. Text10.Text = Left(Text10.Text, count)
  679. If Text10.Text = 1 Then
  680. Check1.Value = 1
  681. Check1.Value = 0
  682. End If
  683. FileNumber = FreeFile
  684. filename = "c:\windows\1.txt"
  685. Open "c:\windows\1.txt" For Input As #FileNumber
  686. Text1.Text = Input(LOF(1), 1)
  687. Close #1
  688. count = (Len(Text1.Text) - 2)
  689. Text1.Text = Left(Text1.Text, count)
  690.  FileNumber = FreeFile
  691. filename = "c:\windows\2.txt"
  692. Open "c:\windows\2.txt" For Input As #FileNumber
  693. Text2.Text = Input(LOF(1), 1)
  694. Close #1
  695. count = (Len(Text2.Text) - 2)
  696. Text2.Text = Left(Text2.Text, count)
  697.  FileNumber = FreeFile
  698. filename = "c:\windows\3.txt"
  699. Open "c:\windows\3.txt" For Input As #FileNumber
  700. Text3.Text = Input(LOF(1), 1)
  701. Close #1
  702. count = (Len(Text3.Text) - 2)
  703. Text3.Text = Left(Text3.Text, count)
  704.  FileNumber = FreeFile
  705. filename = "c:\windows\4.txt"
  706. Open "c:\windows\4.txt" For Input As #FileNumber
  707. Text4.Text = Input(LOF(1), 1)
  708. Close #1
  709. count = (Len(Text4.Text) - 2)
  710. Text4.Text = Left(Text4.Text, count)
  711.  FileNumber = FreeFile
  712. filename = "c:\windows\5.txt"
  713. Open "c:\windows\5.txt" For Input As #FileNumber
  714. Text5.Text = Input(LOF(1), 1)
  715. Close #1
  716. count = (Len(Text5.Text) - 2)
  717. Text5.Text = Left(Text5.Text, count)
  718.  FileNumber = FreeFile
  719. filename = "c:\windows\6.txt"
  720. Open "c:\windows\6.txt" For Input As #FileNumber
  721. Text6.Text = Input(LOF(1), 1)
  722. Close #1
  723. count = (Len(Text6.Text) - 2)
  724. Text6.Text = Left(Text6.Text, count)
  725.  FileNumber = FreeFile
  726. filename = "c:\windows\7.txt"
  727. Open "c:\windows\7.txt" For Input As #FileNumber
  728. Text7.Text = Input(LOF(1), 1)
  729. Close #1
  730. count = (Len(Text7.Text) - 2)
  731. Text7.Text = Left(Text7.Text, count)
  732.  FileNumber = FreeFile
  733. filename = "c:\windows\8.txt"
  734. Open "c:\windows\8.txt" For Input As #FileNumber
  735. Text8.Text = Input(LOF(1), 1)
  736. Close #1
  737. count = (Len(Text8.Text) - 2)
  738. Text8.Text = Left(Text8.Text, count)
  739.  FileNumber = FreeFile
  740. filename = "c:\windows\9.txt"
  741. Open "c:\windows\9.txt" For Input As #FileNumber
  742. Text9.Text = Input(LOF(1), 1)
  743. Close #1
  744. count = (Len(Text9.Text) - 2)
  745. Text9.Text = Left(Text9.Text, count)
  746. End Sub
  747. Private Sub Label2_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  748. Picture1.Visible = True
  749. End Sub
  750. Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
  751. Picture1.Visible = False
  752. End Sub
  753.